package xin.marcher.module.lifecycle.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xin.marcher.module.lifecycle.domain.entity.ItemPeriodStageDO;

import java.util.List;

/**
 * 生命周期Mapper
 */
@Mapper
public interface ItemPeriodStageMapper extends BaseMapper<ItemPeriodStageDO> {
    /**
     * 根据itemId查询商品状态
     *
     * @param itemId
     * @return
     */
    ItemPeriodStageDO selectByItemId(@Param("itemId") String itemId);

    /**
     * 根据itemId set集合查询商品生命周期集合selectSkuPeriodStageList
     *
     * @param itemIdSet
     * @return
     */
    List<ItemPeriodStageDO> selectItemPeriodStageList(@Param("list") List<String> itemIdSet);
}